package com.teradyne.phoenix.client.places;

import com.google.gwt.place.shared.Place;
import com.google.gwt.place.shared.PlaceTokenizer;
import com.google.gwt.place.shared.Prefix;

public class RolesPlace extends Place {

	private String placeName;
	
	public RolesPlace() {
	}

	public RolesPlace(String token) {
		this.placeName = token;
	}

	public String getPlaceName() {
		return placeName;
	}

	@Prefix("roles")
	public static class Tokenizer implements PlaceTokenizer<RolesPlace> {

		@Override
		public String getToken(RolesPlace place) {
			return place.getPlaceName();
		}

		@Override
		public RolesPlace getPlace(String token) {
			return new RolesPlace(token);
		}

	}

}
